package com.micro.modual.extension;

import com.micro.common.MicroConstant;
import com.micro.common.biz.GeneratorCodeUtil;
import com.micro.common.util.SnowFlakeUtil;
import com.micro.modual.entity.RechargeRecord;
import com.micro.modual.model.bo.rechargerecord.RechargeRecordBO;

/**
 * <h1>充值记录表 延展类</h1>
 *
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020-08-04 00:23:26
 */
public class RechargeRecordExtension {

    /**
     * <h2>转换: 充值记录表 新增</h2>
     *
     * @param rechargeRecordBO {@link RechargeRecordBO} 充值记录表 新增/修改 请求对象
     * @return {@link RechargeRecord} 充值记录表
     */
    public static RechargeRecord converAddRechargeRecord(RechargeRecordBO rechargeRecordBO) {
        RechargeRecord rechargeRecord = new RechargeRecord();
        rechargeRecord.setId(SnowFlakeUtil.getId());
        return rechargeRecord;
    }

    /**
     * <h2>转换: 充值记录表 修改</h2>
     *
     * @param rechargeRecordBO {@link RechargeRecordBO} 充值记录表 新增/修改 请求对象
     * @return {@link RechargeRecord} 充值记录表
     */
    public static RechargeRecord converEditRechargeRecord(RechargeRecordBO rechargeRecordBO) {
        RechargeRecord rechargeRecord = new RechargeRecord();
        rechargeRecord.setId(rechargeRecordBO.getId());
        return rechargeRecord;
    }
}
